﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
namespace BUS
{
    public class PhieuBanBUS
    {
        public string TaoMaBHMoi()
        {
            PhieuBanDAO dao = new PhieuBanDAO();
            return dao.TaoMaBHMoi();
        }
        public int ThemPhieuBan(PhieuBanDTO pbDTO)
        {
            PhieuBanDAO dao = new PhieuBanDAO();
            return dao.ThemPhieuBan(pbDTO);
        }
        public double BaoCaoTienThu(string Nam)
        {
            PhieuBanDAO dao = new PhieuBanDAO();
            return dao.BaoCaoTienThu(Nam);
        }
        public double BaoCaoTienThuThang(string Thang,string Nam)
        {
            PhieuBanDAO dao = new PhieuBanDAO();
            return dao.BaoCaoTienThuThang(Thang,Nam);
        }
        public List<PhieuBanDTO> LayThangThu()
        {
            PhieuBanDAO dao = new PhieuBanDAO();
            return dao.LayThangThu();
        }

        public List<PhieuBanDTO> TheoDoiBanHang(string Thang, string Nam)
        {
            PhieuBanDAO dao = new PhieuBanDAO();
            return dao.TheoDoiBanHang(Thang, Nam);
        }
        public List<PhieuBanDTO> TheoDoiXuat(string Thang, String Nam)
        {
            PhieuBanDAO dao = new PhieuBanDAO();
            return dao.TheoDoiXuat(Thang,Nam);
        }
    }
}
